package com.zyc.service.Impl;

import com.zyc.mapper.SP_StateMapper;
import com.zyc.pojo.SP_StatePojo;
import com.zyc.service.SP_StateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 名称SP_StateServiceImpl
 * 描述
 *
 * @version 1.0
 * @author:liuxu
 * @datatime:2024-06-12 21:39
 */
@Service
public class SP_StateServiceImpl implements SP_StateService {

    @Autowired(required = false)
    private SP_StateMapper sp_stateMapper;

    //根据id查询审批状态
    @Override
    public SP_StatePojo findSP_StateById(Integer id) {
        return sp_stateMapper.findSP_StateById(id);
    }

    //查询全部审批状态
    @Override
    public List<SP_StatePojo> findAllSP_State() {
        return sp_stateMapper.findAllSP_State();
    }

    //添加审批状态
    @Override
    public int insertSP_Sate(SP_StatePojo sp_statePojo) {
        return sp_stateMapper.insertSP_State(sp_statePojo);
    }


}
